package com.object.oriented.exam.system3.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("t_paper_problem")
@NoArgsConstructor
public class PaperProblem implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 对应的问题id
     */
    private Long problemId;

    /**
     * 对应的问卷id
     */
    private Long paperId;

    /**
     * 在该试卷中的分数
     */
    private Integer score;

    public PaperProblem(Long problemId,Long paperId,Integer score){
        this.problemId = problemId;
        this.paperId = paperId;
        this.score = score;
    }
}
